package com.helen.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yang on 2018/5/9.
 */

public class ProductEntity implements Serializable {

    /**
     * id : 2
     * classid : 3
     * parentid : 2
     * classname : 芹菜
     * name : 菲律宾新鲜美味大芹菜
     * costprice : 10.0
     * discountprice : 5.0
     * count : 10.0
     * unit : /斤
     * imgs : [{"id":4,"url":"http://39.104.50.19/UserImg/SystemImg.png"},{"id":5,"url":"http://39.104.50.19/Images/201804250933313061842.png"}]
     * detailimgs : [{"id":5,"url":"http://39.104.50.19/Images/201804250933313061842.png"}]
     * expressprice : 0.0
     * isactive : 0
     * isspec : 1
     */

    private int id;
    private int classid;
    private int parentid;
    private String classname;
    private String name;
    private double costprice;
    private double discountprice;
    private int count;
    private String unit;
    private double expressprice;
    private int isactive;
    private int isspec;
    private int paycount;
    private List<ImgsBean> imgs;
    private List<DetailimgsBean> detailimgs;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getClassid() {
        return classid;
    }

    public void setClassid(int classid) {
        this.classid = classid;
    }

    public int getParentid() {
        return parentid;
    }

    public void setParentid(int parentid) {
        this.parentid = parentid;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getCostprice() {
        return costprice;
    }

    public void setCostprice(double costprice) {
        this.costprice = costprice;
    }

    public double getDiscountprice() {
        return discountprice;
    }

    public void setDiscountprice(double discountprice) {
        this.discountprice = discountprice;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public double getExpressprice() {
        return expressprice;
    }

    public void setExpressprice(double expressprice) {
        this.expressprice = expressprice;
    }

    public int getIsactive() {
        return isactive;
    }

    public void setIsactive(int isactive) {
        this.isactive = isactive;
    }

    public int getIsspec() {
        return isspec;
    }

    public void setIsspec(int isspec) {
        this.isspec = isspec;
    }

    public List<ImgsBean> getImgs() {
        return imgs;
    }

    public void setImgs(List<ImgsBean> imgs) {
        this.imgs = imgs;
    }

    public List<DetailimgsBean> getDetailimgs() {
        return detailimgs;
    }

    public void setDetailimgs(List<DetailimgsBean> detailimgs) {
        this.detailimgs = detailimgs;
    }

    public static class ImgsBean implements Serializable {
        /**
         * id : 4
         * url : http://39.104.50.19/UserImg/SystemImg.png
         */

        private int id;
        private String url;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public int getPaycount() {
        return paycount;
    }

    public void setPaycount(int paycount) {
        this.paycount = paycount;
    }

    public static class DetailimgsBean implements Serializable {
        /**
         * id : 5
         * url : http://39.104.50.19/Images/201804250933313061842.png
         */

        private int id;
        private String url;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
